<template>
	<view class="step">
		<view class="step_box">
			<view class="step_right">
				<view class="right_content" style="margin-right: 22rpx;" v-for="(item,index) in stepData" :key="index">
					<p class="title" style="text-align: end;">{{item.name}}</p>
					<p class="times" style="text-align: end;">{{item.time}}</p>
				</view>
			</view>
			<!-- 左侧进度线 -->
			<view class="step_left">
			</view>
			<view class="step_right">
				<view class="right_content" style="margin-right: 22rpx;" v-for="(item,index) in stepData" :key="index">
					<p class="title" >{{item.money}}</p>
					<!-- 进度时间 -->
					<p class="times">{{item.moneyInfo}}</p>
					<!-- 右侧的进度点 -->
					<p class="status"></p>
				</view>
			</view>
		</view>

	</view>
</template>


<script>
	export default {
		data() {
			return {};
		},
		props: {
			colors: {
				type: String
			},
			stepData: {
				type: Array
			}
		},
		methods: {

			jumpNext(item) {

				this.$emit("itemClick", item);
			}

		}
	};
</script>


<style lang="scss" scoped>
	.step {
		padding: 40rpx 0 0 0;
	}

	.step_box {
		display: flex;

		.step_left {
			width: 2rpx;
			display: block;
			background-color: #DDDDDD;
			overflow: hidden;
		}

		.step_right {
			margin-left: 20rpx;
			margin-top: -10rpx;

			.right_content {
				position: relative;
				margin-bottom: 40rpx;
				.title {
					font-size: 28rpx;
					font-family: Source Han Sans CN;
					font-weight: 500;
					color: #333333;
				}

				.times {
					font-size: 22rpx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: #999999;
					line-height: 36rpx;
				}

				.status {
					box-sizing: content-box;
					width: 20rpx;
					height: 20rpx;
					border-radius: 50%;
					border: 4rpx solid #1277ff;
					position: absolute;
					top: 6rpx;
					background-color: #ffffff;
					left: -34rpx;
					color: white;
					line-height: 12px;
					font-size: 10px;
					text-align: center;
				}

				&:last-of-type {
					margin-bottom: 0;

					.status {
						top: 6rpx;
					}

					&::before {
						content: '';
						width: 6rpx;
						height: 100%;
						background-color: #FFFFFF;
						position: absolute;
						top: 22rpx;
						left: -24rpx;
					}
				}
			}
		}
	}
</style>